/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package post2;

/**
 *
 * @author Danny
 */
public class Customer {
    String name;
    Transaction transaction;
    
    public Customer(Transaction trans_object,String newName){
        name = newName;
        transaction=trans_object;
    }
    
    public Customer(String newName, Transaction newTransaction){
        name = newName;
        transaction = newTransaction;
    }
    
    public String getName(){
        return name;
    }
    
    public void setName(String newName){
        this.name=newName;
    }
    
    public Transaction getTransaction(){
        return transaction;
    }
    
    public void setTransaction(Transaction newTransaction){
        this.transaction=newTransaction;
    }
    
    public void requestPost(Post post){
        post.newTransaction(transaction);
    }
}
